package com.sharainy.service.impl;

import com.sharainy.dao.AgreementMapper;
import com.sharainy.pojo.Agreement;
import com.sharainy.service.AgreementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgreementServiceImpl implements AgreementService {
    @Autowired
    private AgreementMapper agreementMapper;
    @Override
    public List<Agreement> getAgreementType() {
        return agreementMapper.getAgreementType();
    }

    @Override
    public List<Agreement> getAgreementInfo(int typeId) {
        return agreementMapper.getAgreementInfo(typeId);
    }

    @Override
    public List<Agreement> getSubentryInfo() {
        return agreementMapper.getSubentryInfo();
    }
}
